package kr.co.xosoft.view;

import kr.co.xosoft.R;
import kr.co.xosoft.R.id;
import kr.co.xosoft.R.layout;
import kr.co.xosoft.vo.ServerChkVO;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ServerChkCTView extends LinearLayout{
	private ImageView iv01;
	private TextView tv01;
	private TextView tv02;

	public ServerChkCTView(Context context, ServerChkVO serverChkVO) {
		super(context);
		LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.ctview, this, true);
		
		iv01 = (ImageView)findViewById(R.id.ct_iv01);
		tv01 = (TextView)findViewById(R.id.ct_tv01);
		tv02 = (TextView)findViewById(R.id.ct_tv02);
		
		iv01.setImageDrawable(serverChkVO.getRcode());
		tv01.setText(serverChkVO.getId());
		tv02.setText(serverChkVO.getIp());
	}
}
